<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:c="http://java.sun.com/jsp/jstl/core">

<f:view contentType="text/html">

	<h:head>
		<title>QUIZ</title>
		<meta content='text/html; charset=UTF-8' http-equiv="Content-Type" />
		<link type="text/css" rel="stylesheet"
			href="#{request.contextPath}/css/default.css" />
		<link type="text/css" rel="stylesheet"
			href="#{request.contextPath}/syntaxhighlighter/styles/syntaxhighlighter.css" />
		<link rel="shortcut icon"
			href="#{request.contextPath}/images/favicon.ico" />
		<ui:insert name="head"></ui:insert>
	</h:head>

	<h:body>
		<p:layout fullPage="true">


			<p:layoutUnit id="center" position="center">
				<div id="content" class="ui-widget">
					<div class="post" style="margin: 170px">
						<p:panel id="pnl"
							style="text-align:center; float:right; margin:70px 100px 50px 50px; width:350px;">
							<form name='f' method='POST' action='j_spring_security_check'>

								<c:if
									test="${not empty sessionScope['SPRING_SECURITY_LAST_EXCEPTION']}">
									<div class="errorblock" style="background: #C00; color: white">

										${sessionScope["SPRING_SECURITY_LAST_EXCEPTION"].message}</div>
								</c:if>

								<h:panelGrid columns="2" cellpadding="5" style="margin:20px;">
									<h:outputLabel for="j_username" value="Kullanocı Adı: *"
										style="font-weight:bolder;" />
									<p:inputText value="#{j_username}" id="j_username"
										required="true" label="j_username" />
									<h:outputLabel for="j_password" value="Şifre: * "
										style="font-weight:bolder;" />
									<p:keyboard id="j_password" value="#{j_password}"
										required="true" label="password" password="true"
										readOnly="true" autocomplete="false"
										closeLabel="#{messages['common.keyboard.closelabel']}"
										clearLabel="#{messages['common.keyboard.clearlabel']}"
										backspaceLabel="#{messages['common.keyboard.backspacelabel']}" />
									<div class="submit">
										<h:commandButton type="submit" update="growl" value="Giriş" />
									</div>
								</h:panelGrid>
							</form>
						</p:panel>
					</div>
				</div>
			</p:layoutUnit>



		</p:layout>
	</h:body>
</f:view>
</html>
